package day_07;

/**
 * @ClassName Method
 * @Description TODO
 * @Author hp
 * @Date 2021/6/10 9:38
 * @Version 1.0
 **/
public class Method {
    public static void main(String[] args) {
        System.out.println(sumInt(10, 20));
        mpTable();
        System.out.println("areaCircle() = " + areaCircle(5));
    }
    public static int sumInt(int a,int b){
        return a+b;
    }
    public  static  void mpTable(){
        for (int i = 1; i <=9 ; i++) {
            for (int j = 1; j <=i ; j++) {
                System.out.print(i+"*"+j+"="+i*j+"\t");
            }
            System.out.println();
        }
    }
    public static double areaCircle(int r){
        return r*r*Math.PI;
    }
}
